[Microsoft][ODBC SQL Server Driver][SQL Server]用户 '(null)' 登录失败。原因:未与信任的SQL Server连

来源:百度知道 编辑:UC知道 时间:2024/07/05 01:32:45
jsp连接数据库

1. 打开 配置工具->SQL Server外围应用配置器
2. 点击“Surface Area Configuration for services and connections”
3. 在“Database Engine->Remote Connection”下,选择“Local and remote connection”选项,选择下面的“Using both TCP/IP and named pipes”
另外要检查一下SQL Server的services是否启动。

你的SQL有个登录用户名叫“(null)”,没有给予数据库权限

原因你没有写用户名啊。呵呵。百度hi我。